package com.qf.service.impl;

import com.qf.dao.MusicListDao;
import com.qf.pojo.MusicList;
import com.qf.service.MusicListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MusicListServiceImpl implements MusicListService {
    @Autowired(required = false)
    MusicListDao musicListDao;
    @Override
    public List<MusicList> findAll() {
        return musicListDao.findAll();
    }

    @Override
    public List<MusicList> findByName(String name) {
        return musicListDao.findByName(name);
    }

    @Override
    public int add(MusicList musicList) {
        return musicListDao.add(musicList);
    }

    @Override
    public int update(MusicList musicList) {
        return musicListDao.update(musicList);
    }

    @Override
    public int delete(String name) {
        return musicListDao.delete(name);
    }
}
